<?php
Route::middleware([\Hilaoyu\LaravelExtend\Services\Files\Middleware\FilesPrivateApiServiceDeDataMiddleware::class])
    ->prefix('files')
    ->group(function () {
        Route::post('uploader/{disk}', 'FilesServiceController@uploader')->name('.uploader');
        Route::post('upload_task/generate/{disk}', 'FilesServiceController@uploadTaskCreate')
            ->name('.upload.task.add');
        Route::post('upload_task/get', 'FilesServiceController@uploadTaskGet')
            ->name('.upload.task.view');
        Route::post('usefor', 'FilesServiceController@useFor')
            ->name('.usefor');
        Route::post('url/{disk}', 'FilesServiceController@url')
            ->name('.url');
        Route::post('temp-url/{disk}', 'FilesServiceController@tempUrl')
            ->name('.temp-url');
        Route::post('info/{disk}', 'FilesServiceController@fileInfo')
            ->name('.info');
    });